import sys

# from PyQt6.QtWidgets import QMainWindow
from PySide6 import QtWidgets
from PySide6.QtWidgets import QMainWindow

from src.ui.motor import Motor


class MotorUI(Motor):
    """
    电机上位机UI页面
    """

    def __init__(self, widget):
        super().__init__()
        super().setupUi(widget)


if __name__ == "__main__":
    app = QtWidgets.QApplication(sys.argv)
    widget = QMainWindow()
    motor_ui = MotorUI(widget)
    widget.show()
    app.exec()
